import os

from ament_index_python.packages import get_package_share_directory, get_package_prefix
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node


def generate_launch_description():
    params_file = os.path.join(
        get_package_share_directory('usb_cam'), 'config', 'params.yaml')


    return LaunchDescription([

        Node(
            package='usb_cam',
            executable='usb_cam_node',
            name='usb_cam',
            output='both',
            emulate_tty=True,
            parameters=[params_file],
            ros_arguments=[],
        )


    ])
